//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<CConstantIndex10.cpp>
///	@path	~/src/graphics/dx10/
///	@date	2009/01/11
///	@desc	.

#include "config/config.h"

#include "graphics/dx10/CConstantIndex10.h"

namespace xeres {
	
	IMPL_IOBJECT_CLASS( CConstantIndex10 );

	// CConstantIndex10
	CConstantIndex10::CConstantIndex10( ID3D10Buffer * buffer , size_t count , DXGI_FORMAT format )
		: CBaseIndex10( buffer , count , format )
	{
	}
	// ~CConstantIndex10
	CConstantIndex10::~CConstantIndex10( void )
	{
	}
	// Map
	bool CConstantIndex10::Map( bool discard , ResourceMap& data )
	{
		TRACE_ERROR( _S("CConstantIndex10::Map: Constant index is not lockable.") );
		return false;
	}
	// ReadBack
	bool CConstantIndex10::ReadBack( ResourceMap& data , bool readonly )
	{
		TRACE_ERROR( _S("CConstantIndex10::ReadBack: Constant index is not lockable.") );
		return false;
	}
	// Unmap
	bool CConstantIndex10::Unmap( void )
	{
		TRACE_ERROR( _S("CConstantIndex10::Unmap: Constant index cannot be locked & unlocked.") );
		return false;
	}

} // namespace xeres
